<div class="detailContent memberrg black" style="width: 655px;min-height: 1385px">
    <div class="form">
<?php
$vm=new JUserModel(array(
    'user_type'=>$user_type,
    'user_title'=>$user_title,
));

function open($model, $key){
?>
<span class="open"><input name="open[<?php
    echo $key; ?>]" type="checkbox" id="Open_<?php
    echo $key; ?>" <?php
    echo (isset($model->$key) && $model->$key==1) ?  'checked="checked"':''; ?> value="1"/>&nbsp;公开</span>
<?php
}

echo '<h2 style="font-size:18px;margin:10px auto;text-align:center;">您是:<span style="color:green;">'.
    $user_title.($user_type=='团体会员'?'会员':'').'</span></h2>';


if($user_title=='管理员'){
?>

    <div class="message">管理员不需要此项功能</div>
    <p>&nbsp;</p>
    <a href="/index.php?r=manage/index&amp;cate=14" id="button">返回</a>    <div class="celar"></div></div>
<?php

} elseif($user_title=='高级会员'||$user_title=='尊最会员') {

$form=$this->beginWidget('JUserForm', array(
    'id'=>'edit-form',
    'enableAjaxValidation'=>false,
    'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>
<?php echo $form->errorSummary($model); ?>

        <div class="row">
            <?php echo $form->labelEx($model,'username'); ?>
            <?php echo $model->username; ?>
            <span class="msg">注册时自动分配,不可修改,可以使用它作为登陆账号</span>
            <?php open($info_status, 'username');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'nickname'); ?>
            <?php echo $form->textField($model,'nickname',array('readonly'=>'readonly')); ?>
            <span class="msg">不可修改,可以使用它作为登陆账号</span>
            <?php open($info_status, 'nickname');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'idcard'); ?>
            <?php echo $form->textField($model,'idcard',array('readonly'=>'readonly')); ?>
            <span class="msg">不可修改</span>
            <?php open($info_status, 'idcard');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'sex'); ?>
            <input type="text" value="<?php echo $model->sex==1?'男':($model->sex==2?'女':''); ?>" readonly='readonly' id="JUserModel_sex" />
            <span class="msg">不可修改</span>
            <?php open($info_status, 'sex');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'birthday'); ?>
            <?php
            $this->widget('zii.widgets.jui.CJuiDatePicker',array(
                'attribute'=>'stime',
                'language'=>'zh_cn',
                'name'=>'JUserModel[birthday]',
                'value'=> $model->birthday,
                'options'=>array(
                    'showAnim'=>'fold',
                    'showOn'=>'both',
                    'buttonImage'=>Yii::app()->request->baseUrl.'/images/date.gif',
                    'buttonImageOnly'=>false,
                    'dateFormat'=>'yymmdd',
                    'changeYear'=>true,
                ),
                'htmlOptions'=>array(
                    'class'=>'text80',
                    'readonly'=>'readonly'
                ),
            ));
            ?>
            <?php echo $form->error($model,'birthday'); ?>
            <?php open($info_status, 'birthday');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'place'); ?>
            <?php echo $form->textField($model,'place',array('readonly'=>'readonly')); ?>
            <span class="msg">不可修改</span>
            <?php open($info_status, 'place');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'nation'); ?>
            <?php echo $form->textField($model,'nation',array('readonly'=>'readonly')); ?>
            <span class="msg">不可修改</span>
            <?php open($info_status, 'nation');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'marry'); ?>
            <span id="JUserModel_marry">
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_marry_0"> <label for="JUserModel_marry_0">已婚</label>
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_marry_1"> <label for="JUserModel_marry_1">未婚</label>
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_marry_2"> <label for="JUserModel_marry_2">其他</label></span>
            <?php echo $form->error($model,'marry'); ?>
            <?php open($info_status, 'marry');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'address'); ?>
            <?php echo $form->textField($model,'address'); ?>
            <?php echo $form->error($model,'address'); ?>
            <?php open($info_status, 'address');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'contact'); ?>
            <?php echo $form->textField($model,'contact'); ?>
            <?php echo $form->error($model,'contact'); ?>
            <?php open($info_status, 'contact');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'post'); ?>
            <?php echo $form->textField($model,'post'); ?>
            <?php echo $form->error($model,'post'); ?>
            <?php open($info_status, 'post');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'email'); ?>
            <?php echo $form->textField($model,'email',array('readonly'=>'readonly')); ?>
            <span class="msg">不可修改</span>
            <?php open($info_status, 'email');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'phone'); ?>
            <?php echo $form->textField($model,'phone'); ?>
            <?php echo $form->error($model,'phone'); ?>
            <?php open($info_status, 'phone');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'im'); ?>
            <?php echo $form->textField($model,'im'); ?>
            <?php echo $form->error($model,'im'); ?>
            <?php open($info_status, 'im');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'politics'); ?>
            <span id="JUserModel_marry">
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_politics_0"> <label for="JUserModel_politics_0">中共党员</label>
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_politics_1"> <label for="JUserModel_politics_1">共青团员</label>
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_politics_2"> <label for="JUserModel_politics_2">其他</label></span>
            <?php echo $form->error($model,'politics'); ?>
            <?php open($info_status, 'politics');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'jobtitle'); ?>
            <?php echo $form->textField($model,'jobtitle'); ?>
            <?php echo $form->error($model,'jobtitle'); ?>
            <?php open($info_status, 'jobtitle');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'job'); ?>
            <?php echo $form->textField($model,'job'); ?>
            <?php echo $form->error($model,'job'); ?>
            <?php open($info_status, 'job');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'blog'); ?>
            <?php echo $form->textField($model,'blog'); ?>
            <?php echo $form->error($model,'blog'); ?>
            <?php open($info_status, 'blog');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'pphoto'); ?>
    <div id="pphoto_top">
        <?php if(!empty($model->pphoto)):
            echo CHtml::image($model->pphoto,'个人照片',array('style'=>'max-width:400px;'));
            echo CHtml::button('重新选择',array('onClick'=>'pphoto_new();'));
        else:?>
            <input type="file" id="JUserModel_pphoto" name="pphoto">
        <?php endif;?>
            <?php echo $form->error($model,'pphoto'); ?>
    </div>
            <span class="msg">上传附件不超过1M</span>
            <?php open($info_status, 'pphoto');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'highest_education'); ?>
            <span id="JUserModel_highest_education">
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_highest_education_0"> <label for="JUserModel_highest_education_0">博士</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_highest_education_1"> <label for="JUserModel_highest_education_1">硕士</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_highest_education_2"> <label for="JUserModel_highest_education_2">本科</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==4){ ?>checked="checked"<?php } ?> value="4" id="JUserModel_highest_education_3"> <label for="JUserModel_highest_education_3">专科</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==5){ ?>checked="checked"<?php } ?> value="6" id="JUserModel_highest_education_4"> <label for="JUserModel_highest_education_4">其他</label></span>
            <?php echo $form->error($model,'highest_education'); ?>
            <?php open($info_status, 'highest_education');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'graduation_date'); ?>
            <?php
            $this->widget('zii.widgets.jui.CJuiDatePicker',array(
                'attribute'=>'stime',
                'language'=>'zh_cn',
                'name'=>'JUserModel[graduation_date]',
                'value'=> $model->graduation_date,
                'options'=>array(
                    'showAnim'=>'fold',
                    'showOn'=>'both',
                    'buttonImage'=>Yii::app()->request->baseUrl.'/images/date.gif',
                    'buttonImageOnly'=>false,
                    'dateFormat'=>'yymmdd',
                    'changeYear'=>true,
                ),
                'htmlOptions'=>array(
                    'class'=>'text80',
                    'readonly'=>'readonly'
                ),
            ));
            ?>
            <?php echo $form->error($model,'graduation_date'); ?>
            <?php open($info_status, 'graduation_date');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'school'); ?>
            <?php echo $form->textField($model,'school'); ?>
            <?php echo $form->error($model,'school'); ?>
            <?php open($info_status, 'school');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'department'); ?>
            <?php echo $form->textField($model,'department'); ?>
            <?php echo $form->error($model,'department'); ?>
            <?php open($info_status, 'department');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'specialities'); ?>
            <?php echo $form->textField($model,'specialities'); ?>
            <?php echo $form->error($model,'specialities'); ?>
            <?php open($info_status, 'specialities');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'research_directions'); ?>
            <?php echo $form->textArea($model,'research_directions',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;')); ?>
            <?php echo $form->error($model,'research_directions'); ?>
            <?php open($info_status, 'research_directions');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'work_experience'); ?>
            <?php echo $form->textArea($model,'work_experience',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;')); ?>
            <?php echo $form->error($model,'work_experience'); ?>
            <?php open($info_status, 'work_experience');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'scientific_result'); ?>
            <?php echo $form->textArea($model,'scientific_result',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;')); ?>
            <?php echo $form->error($model,'scientific_result'); ?>
            <?php open($info_status, 'scientific_result');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'achievement'); ?>
            <?php echo $form->textArea($model,'achievement',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;')); ?>
            <?php echo $form->error($model,'achievement'); ?>
            <?php open($info_status, 'achievement');?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'social_position'); ?>
            <?php echo $form->textArea($model,'social_position',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;')); ?>
            <?php echo $form->error($model,'social_position'); ?>
            <?php open($info_status, 'social_position');?>
        </div>

        <div style="margin: 50px 0;" >
            <span><?php echo CHtml::submitButton('',array('id'=>'tjsh','style'=>'border: 0 none;font-size:0;')); ?></span>
        </div>
    <?php $this->endWidget(); ?>
    </div><!-- form -->
    <div class="clear"></div>
</div>

<script type="text/javascript">
    function pphoto_new(){
        $("#pphoto_top").html(
            '<input type="hidden" name="JUserModel[pphoto]" value="" id="ytJUserModel_pphoto"><input type="file" id="JUserModel_pphoto" name="pphoto">'
        );
    }
</script>

<?php
} elseif    ($user_title=='普善会员'){

$form=$this->beginWidget('JUserForm', array(
'id'=>'edit-form',
'enableAjaxValidation'=>false,
'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>
<?php echo $form->errorSummary($model); ?>

<div class="row">
    <?php echo $form->labelEx($model,'username'); ?>
    <?php echo 'spcf'.$model->username; ?>
    <span class="msg">注册时自动分配,不可修改,可以使用它作为登陆账号</span>
    <?php open($info_status, 'username');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'nickname'); ?>
    <?php echo $form->textField($model,'nickname',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改,可以使用它作为登陆账号</span>
    <?php open($info_status, 'nickname');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'idcard'); ?>
    <?php echo $form->textField($model,'idcard',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'idcard');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'sex'); ?>
    <input type="text" value="<?php echo $model->sex==1?'男':($model->sex==2?'女':''); ?>" readonly='readonly' id="JUserModel_sex" />
    <span class="msg">不可修改</span>
    <?php open($info_status, 'sex');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'birthday'); ?>
    <?php
    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
        'attribute'=>'stime',
        'language'=>'zh_cn',
        'name'=>'JUserModel[birthday]',
        'value'=> $model->birthday,
        'options'=>array(
            'showAnim'=>'fold',
            'showOn'=>'both',
            'buttonImage'=>Yii::app()->request->baseUrl.'/images/date.gif',
            'buttonImageOnly'=>false,
            'dateFormat'=>'yymmdd',
            'changeYear'=>true,
        ),
        'htmlOptions'=>array(
            'class'=>'text80',
            'readonly'=>'readonly'
        ),
    ));
    ?>
    <?php echo $form->error($model,'birthday'); ?>
    <?php open($info_status, 'birthday');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'place'); ?>
    <?php echo $form->textField($model,'place',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'place');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'nation'); ?>
    <?php echo $form->textField($model,'nation',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'nation');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'marry'); ?>
    <span id="JUserModel_marry">
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_marry_0"> <label for="JUserModel_marry_0">已婚</label>
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_marry_1"> <label for="JUserModel_marry_1">未婚</label>
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_marry_2"> <label for="JUserModel_marry_2">其他</label></span>
    <?php echo $form->error($model,'marry'); ?>
    <?php open($info_status, 'marry');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'address'); ?>
    <?php echo $form->textField($model,'address'); ?>
    <?php echo $form->error($model,'address'); ?>
    <?php open($info_status, 'address');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'contact'); ?>
    <?php echo $form->textField($model,'contact'); ?>
    <?php echo $form->error($model,'contact'); ?>
    <?php open($info_status, 'contact');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'post'); ?>
    <?php echo $form->textField($model,'post'); ?>
    <?php echo $form->error($model,'post'); ?>
    <?php open($info_status, 'post');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'email'); ?>
    <?php echo $form->textField($model,'email',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'email');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'phone'); ?>
    <?php echo $form->textField($model,'phone'); ?>
    <?php echo $form->error($model,'phone'); ?>
    <?php open($info_status, 'phone');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'im'); ?>
    <?php echo $form->textField($model,'im'); ?>
    <?php echo $form->error($model,'im'); ?>
    <?php open($info_status, 'im');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'politics'); ?>
    <span id="JUserModel_marry">
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_politics_0"> <label for="JUserModel_politics_0">中共党员</label>
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_politics_1"> <label for="JUserModel_politics_1">共青团员</label>
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_politics_2"> <label for="JUserModel_politics_2">其他</label></span>
    <?php echo $form->error($model,'politics'); ?>
    <?php open($info_status, 'politics');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'pphoto'); ?>
    <div id="pphoto_top">
        <?php if(!empty($model->pphoto)):
        echo CHtml::image($model->pphoto,'个人照片',array('style'=>'max-width:400px;'));
        echo CHtml::button('重新选择',array('onClick'=>'pphoto_new();'));
    else:?>
        <input type="file" id="JUserModel_pphoto" name="pphoto">
        <?php endif;?>
        <?php echo $form->error($model,'pphoto'); ?>
    </div>
    <span class="msg">上传附件不超过1M</span>
    <?php open($info_status, 'pphoto');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'highest_education'); ?>
    <span id="JUserModel_highest_education">
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_highest_education_0"> <label for="JUserModel_highest_education_0">博士</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_highest_education_1"> <label for="JUserModel_highest_education_1">硕士</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_highest_education_2"> <label for="JUserModel_highest_education_2">本科</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==4){ ?>checked="checked"<?php } ?> value="4" id="JUserModel_highest_education_3"> <label for="JUserModel_highest_education_3">专科</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==5){ ?>checked="checked"<?php } ?> value="6" id="JUserModel_highest_education_4"> <label for="JUserModel_highest_education_4">其他</label></span>
    <?php echo $form->error($model,'highest_education'); ?>
    <?php open($info_status, 'highest_education');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'graduation_date'); ?>
    <?php
    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
        'attribute'=>'stime',
        'language'=>'zh_cn',
        'name'=>'JUserModel[graduation_date]',
        'value'=> $model->graduation_date,
        'options'=>array(
            'showAnim'=>'fold',
            'showOn'=>'both',
            'buttonImage'=>Yii::app()->request->baseUrl.'/images/date.gif',
            'buttonImageOnly'=>false,
            'dateFormat'=>'yymmdd',
            'changeYear'=>true,
        ),
        'htmlOptions'=>array(
            'class'=>'text80',
            'readonly'=>'readonly'
        ),
    ));
    ?>
    <?php echo $form->error($model,'graduation_date'); ?>
    <?php open($info_status, 'graduation_date');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'school'); ?>
    <?php echo $form->textField($model,'school'); ?>
    <?php echo $form->error($model,'school'); ?>
    <?php open($info_status, 'school');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'department'); ?>
    <?php echo $form->textField($model,'department'); ?>
    <?php echo $form->error($model,'department'); ?>
    <?php open($info_status, 'department');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'specialities'); ?>
    <?php echo $form->textField($model,'specialities'); ?>
    <?php echo $form->error($model,'specialities'); ?>
    <?php open($info_status, 'specialities');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'n_second_school_major'); ?>
    <?php echo $form->textField($model,'n_second_school_major'); ?>
    <?php echo $form->error($model,'n_second_school_major'); ?>
    <?php open($info_status, 'n_second_school_major');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'n_computer_skill'); ?>
    <?php echo $form->textArea($model,'n_computer_skill',array('style'=>'width:415px;height:170px;')); ?>
    <?php echo $form->error($model,'n_computer_skill'); ?>
    <?php open($info_status, 'n_computer_skill');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'n_computer_achievement'); ?>
    <?php echo $form->textArea($model,'n_computer_achievement',array('style'=>'width:415px;height:170px;')); ?>
    <?php echo $form->error($model,'n_computer_achievement'); ?>
    <?php open($info_status, 'n_computer_achievement');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'n_skill_mark'); ?>
    <?php echo $form->textArea($model,'n_skill_mark',array('rows'=>1,'style'=>'width:415px;')); ?>
    <?php echo $form->error($model,'n_skill_mark'); ?>
    <?php open($info_status, 'n_skill_mark');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'n_work'); ?>
    <?php echo $form->textArea($model,'n_work',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;width:415px;height:170px;')); ?>
    <?php echo $form->error($model,'n_work'); ?>
    <?php open($info_status, 'n_work');?>
</div>


<div class="row">
    <?php echo $form->labelEx($model,'n_activity'); ?>
    <ul>
<?php
    $check_item=array(
        '',
        '佩特里网',
        '信息保密',
        '软件工程',
        '开放系统',
        '互联网',
        '普适计算',
        '数据库',
        '协同计算',
        '游戏动漫',
        '体系结构',
        '服务计算',
        '容错计算',
        '系统软件',
        '多媒体技术',
        '办公自动化',
        '中文信息技术',
        '高性能计算',
        '传感器网络',
        '信息存储技术',
        '理论计算机科学',
        '计算机应用计算机安全',
        '计算机工程与工艺',
        '计算机教育教学',
        '金融信息处理',
        '人工智能与模式识别',
        '多值逻辑与模糊逻辑',
        '工业控制计算机',
        '抗恶劣环境计算机',
        '计算机辅助设计与图形学',
        '网络与数据通信',
        '虚拟现实与可视化技术'
    );
    $i=0;
    foreach($check_item as $key_i => $val){
        if(!empty($key_i))
            echo  '<li class="mm"><input name="JUserModel[n_activity]['.$key_i.']" type="checkbox" value="1" '.
                (is_array($model->n_activity)&&in_array($key_i, $model->n_activity) ? 'checked="checked"':'').'/>&nbsp;'.$val.'</li>';
        $i++;
    }
    ?>
        </ul>
</div>

<div style="margin: 50px 0; clear: both;" >
    <span><?php echo CHtml::submitButton('',array('id'=>'tjsh','style'=>'border: 0 none;font-size:0;')); ?></span>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>
</div>

<script type="text/javascript">
    function pphoto_new(){
        $("#pphoto_top").html(
            '<input type="hidden" name="JUserModel[pphoto]" value="" id="ytJUserModel_pphoto"><input type="file" id="JUserModel_pphoto" name="pphoto">'
        );
    }
</script>

<?php
} elseif    ($user_title=='晋学会员'){
    $form=$this->beginWidget('JUserForm', array(
        'id'=>'edit-form',
        'enableAjaxValidation'=>false,
        'htmlOptions'=>array('enctype'=>'multipart/form-data'),
    )); ?>
<?php echo $form->errorSummary($model); ?>

<div class="row">
    <?php echo $form->labelEx($model,'username'); ?>
    <?php echo $model->username; ?>
    <span class="msg">注册时自动分配,不可修改,可以使用它作为登陆账号</span>
    <?php open($info_status, 'username');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'nickname'); ?>
    <?php echo $form->textField($model,'nickname',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改,可以使用它作为登陆账号</span>
    <?php open($info_status, 'nickname');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'idcard'); ?>
    <?php echo $form->textField($model,'idcard',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'idcard');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'sex'); ?>
    <input type="text" value="<?php echo $model->sex==1?'男':($model->sex==2?'女':''); ?>" readonly='readonly' id="JUserModel_sex" />
    <span class="msg">不可修改</span>
    <?php open($info_status, 'sex');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'birthday'); ?>
    <?php
    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
        'attribute'=>'stime',
        'language'=>'zh_cn',
        'name'=>'JUserModel[birthday]',
        'value'=> $model->birthday,
        'options'=>array(
            'showAnim'=>'fold',
            'showOn'=>'both',
            'buttonImage'=>Yii::app()->request->baseUrl.'/images/date.gif',
            'buttonImageOnly'=>false,
            'dateFormat'=>'yymmdd',
            'changeYear'=>true,
        ),
        'htmlOptions'=>array(
            'class'=>'text80',
            'readonly'=>'readonly'
        ),
    ));
    ?>
    <?php echo $form->error($model,'birthday'); ?>
    <?php open($info_status, 'birthday');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'place'); ?>
    <?php echo $form->textField($model,'place',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'place');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'nation'); ?>
    <?php echo $form->textField($model,'nation',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'nation');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'marry'); ?>
    <span id="JUserModel_marry">
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_marry_0"> <label for="JUserModel_marry_0">已婚</label>
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_marry_1"> <label for="JUserModel_marry_1">未婚</label>
            <input type="radio" name="JUserModel[marry]" <?php if($model->marry==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_marry_2"> <label for="JUserModel_marry_2">其他</label></span>
    <?php echo $form->error($model,'marry'); ?>
    <?php open($info_status, 'marry');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'address'); ?>
    <?php echo $form->textField($model,'address'); ?>
    <?php echo $form->error($model,'address'); ?>
    <?php open($info_status, 'address');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'contact'); ?>
    <?php echo $form->textField($model,'contact'); ?>
    <?php echo $form->error($model,'contact'); ?>
    <?php open($info_status, 'contact');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'post'); ?>
    <?php echo $form->textField($model,'post'); ?>
    <?php echo $form->error($model,'post'); ?>
    <?php open($info_status, 'post');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'email'); ?>
    <?php echo $form->textField($model,'email',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'email');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'phone'); ?>
    <?php echo $form->textField($model,'phone'); ?>
    <?php echo $form->error($model,'phone'); ?>
    <?php open($info_status, 'phone');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'im'); ?>
    <?php echo $form->textField($model,'im'); ?>
    <?php echo $form->error($model,'im'); ?>
    <?php open($info_status, 'im');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'politics'); ?>
    <span id="JUserModel_marry">
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_politics_0"> <label for="JUserModel_politics_0">中共党员</label>
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_politics_1"> <label for="JUserModel_politics_1">共青团员</label>
            <input type="radio" name="JUserModel[politics]" <?php if($model->politics==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_politics_2"> <label for="JUserModel_politics_2">其他</label></span>
    <?php echo $form->error($model,'politics'); ?>
    <?php open($info_status, 'politics');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'pphoto'); ?>
    <div id="pphoto_top">
        <?php if(!empty($model->pphoto)):
        echo CHtml::image($model->pphoto,'个人照片',array('style'=>'max-width:400px;'));
        echo CHtml::button('重新选择',array('onClick'=>'pphoto_new();'));
    else:?>
        <input type="file" id="JUserModel_pphoto" name="pphoto">
        <?php endif;?>
        <?php echo $form->error($model,'pphoto'); ?>
    </div>
    <span class="msg">上传附件不超过1M</span>
    <?php open($info_status, 'pphoto');?>
</div>


<div class="row">
    <?php echo $form->labelEx($model,'school'); ?>
    <?php echo $form->textField($model,'school'); ?>
    <?php echo $form->error($model,'school'); ?>
    <?php open($info_status, 'school');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'department'); ?>
    <?php echo $form->textField($model,'department'); ?>
    <?php echo $form->error($model,'department'); ?>
    <?php open($info_status, 'department');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'specialities'); ?>
    <?php echo $form->textField($model,'specialities'); ?>
    <?php echo $form->error($model,'specialities'); ?>
    <?php open($info_status, 'specialities');?>
</div>



<div class="row">
    <?php echo $form->labelEx($model,'highest_education'); ?>
    <span id="JUserModel_highest_education">
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==1){ ?>checked="checked"<?php } ?> value="1" id="JUserModel_highest_education_0"> <label for="JUserModel_highest_education_0">博士</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==2){ ?>checked="checked"<?php } ?> value="2" id="JUserModel_highest_education_1"> <label for="JUserModel_highest_education_1">硕士</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==3){ ?>checked="checked"<?php } ?> value="3" id="JUserModel_highest_education_2"> <label for="JUserModel_highest_education_2">本科</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==4){ ?>checked="checked"<?php } ?> value="4" id="JUserModel_highest_education_3"> <label for="JUserModel_highest_education_3">专科</label>
            <input type="radio" name="JUserModel[highest_education]" <?php if($model->highest_education==5){ ?>checked="checked"<?php } ?> value="6" id="JUserModel_highest_education_4"> <label for="JUserModel_highest_education_4">其他</label></span>
    <?php echo $form->error($model,'highest_education'); ?>
    <?php open($info_status, 'highest_education');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'s_admission_date'); ?>
    <?php
    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
        'attribute'=>'stime',
        'language'=>'zh_cn',
        'name'=>'JUserModel[s_admission_date]',
        'value'=> $model->s_admission_date,
        'options'=>array(
            'showAnim'=>'fold',
            'showOn'=>'both',
            'buttonImage'=>Yii::app()->request->baseUrl.'/images/date.gif',
            'buttonImageOnly'=>false,
            'dateFormat'=>'yymmdd',
            'changeYear'=>true,
        ),
        'htmlOptions'=>array(
            'class'=>'text80',
            'readonly'=>'readonly'
        ),
    ));
    ?>
    <?php echo $form->error($model,'graduation_date'); ?>
    <?php open($info_status, 'graduation_date');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'graduation_date'); ?>
    <?php
    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
        'attribute'=>'stime',
        'language'=>'zh_cn',
        'name'=>'JUserModel[graduation_date]',
        'value'=> $model->graduation_date,
        'options'=>array(
            'showAnim'=>'fold',
            'showOn'=>'both',
            'buttonImage'=>Yii::app()->request->baseUrl.'/images/date.gif',
            'buttonImageOnly'=>false,
            'dateFormat'=>'yymmdd',
            'changeYear'=>true,
        ),
        'htmlOptions'=>array(
            'class'=>'text80',
            'readonly'=>'readonly'
        ),
    ));
    ?>
    <?php echo $form->error($model,'graduation_date'); ?>
    <?php open($info_status, 'graduation_date');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'s_studentid'); ?>
    <?php echo $form->textField($model,'s_studentid'); ?>
    <?php echo $form->error($model,'s_studentid'); ?>
    <?php open($info_status, 's_studentid');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'s_school_position'); ?>
    <?php echo $form->textField($model,'s_school_position'); ?>
    <?php echo $form->error($model,'s_school_position'); ?>
    <?php open($info_status, 's_school_position');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'social_position'); ?>
    <?php echo $form->textField($model,'social_position'); ?>
    <?php echo $form->error($model,'social_position'); ?>
    <?php open($info_status, 'social_position');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'achievement'); ?>
    <?php echo $form->textArea($model,'achievement',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;')); ?>
    <?php echo $form->error($model,'achievement'); ?>
    <?php open($info_status, 'achievement');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'n_computer_skill'); ?>
    <?php echo $form->textArea($model,'n_computer_skill',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;')); ?>
    <?php echo $form->error($model,'n_computer_skill'); ?>
    <?php open($info_status, 'n_computer_skill');?>
</div>


<div style="margin: 50px 0;" >
    <span><?php echo CHtml::submitButton('',array('id'=>'tjsh','style'=>'border: 0 none;font-size:0;')); ?></span>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>
</div>

<script type="text/javascript">
    function pphoto_new(){
        $("#pphoto_top").html(
            '<input type="hidden" name="JUserModel[pphoto]" value="" id="ytJUserModel_pphoto"><input type="file" id="JUserModel_pphoto" name="pphoto">'
        );
    }
</script>

<?php
} elseif    (in_array($user_title,array('公共机构','学校教育','公司企业','其他团体'))){

    $form=$this->beginWidget('JUserForm', array(
        'id'=>'edit-form',
        'enableAjaxValidation'=>false,
        'htmlOptions'=>array('enctype'=>'multipart/form-data'),
    )); ?>
<?php echo $form->errorSummary($model); ?>

<div class="row">
    <?php echo $form->labelEx($model,'username'); ?>
    <?php echo $model->username; ?>
    <span class="msg">注册时自动分配,不可修改,可以使用它作为登陆账号</span>
    <?php open($info_status, 'username');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'nickname'); ?>
    <?php echo $form->textField($model,'nickname',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改,可以使用它作为登陆账号</span>
    <?php open($info_status, 'nickname');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'idcard'); ?>
    <?php echo $form->textField($model,'idcard',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'idcard');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'c_legal_person'); ?>
    <?php echo $form->textField($model,'c_legal_person'); ?>
    <?php echo $form->error($model,'c_legal_person'); ?>
    <?php open($info_status, 'c_legal_person');?>
</div>


<div class="row">
    <?php echo $form->labelEx($model,'birthday'); ?>
    <?php
    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
        'attribute'=>'stime',
        'language'=>'zh_cn',
        'name'=>'JUserModel[birthday]',
        'value'=> $model->birthday,
        'options'=>array(
            'showAnim'=>'fold',
            'showOn'=>'both',
            'buttonImage'=>Yii::app()->request->baseUrl.'/images/date.gif',
            'buttonImageOnly'=>false,
            'dateFormat'=>'yymmdd',
            'changeYear'=>true,
        ),
        'htmlOptions'=>array(
            'class'=>'text80',
            'readonly'=>'readonly'
        ),
    ));
    ?>
    <?php echo $form->error($model,'birthday'); ?>
    <?php open($info_status, 'birthday');?>
</div>


<div class="row">
    <?php echo $form->labelEx($model,'contact'); ?>
    <?php echo $form->textField($model,'contact'); ?>
    <?php echo $form->error($model,'contact'); ?>
    <?php open($info_status, 'contact');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'post'); ?>
    <?php echo $form->textField($model,'post'); ?>
    <?php echo $form->error($model,'post'); ?>
    <?php open($info_status, 'post');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'email'); ?>
    <?php echo $form->textField($model,'email',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'email');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'phone'); ?>
    <?php echo $form->textField($model,'phone'); ?>
    <?php echo $form->error($model,'phone'); ?>
    <?php open($info_status, 'phone');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'blog'); ?>
    <?php echo $form->textField($model,'blog'); ?>
    <?php echo $form->error($model,'blog'); ?>
    <?php open($info_status, 'blog');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'c_hr_manager'); ?>
    <?php echo $form->textField($model,'c_hr_manager'); ?>
    <?php echo $form->error($model,'c_hr_manager'); ?>
    <?php open($info_status, 'c_hr_manager');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'c_contacter_tel'); ?>
    <?php echo $form->textField($model,'c_contacter_tel'); ?>
    <?php echo $form->error($model,'c_contacter_tel'); ?>
    <?php open($info_status, 'c_contacter_tel');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'im'); ?>
    <?php echo $form->textField($model,'im'); ?>
    <?php echo $form->error($model,'im'); ?>
    <?php open($info_status, 'im');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'c_email'); ?>
    <?php echo $form->textField($model,'email',array('readonly'=>'readonly')); ?>
    <span class="msg">不可修改</span>
    <?php open($info_status, 'c_email');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'c_introduce_photo'); ?>
    <div id="c_introduce_photo_top">
        <?php if(!empty($model->c_introduce_photo)):
        echo CHtml::image($model->c_introduce_photo,'组织机构形象照',array('style'=>'max-width:400px;'));
        echo CHtml::button('重新选择',array('onClick'=>'c_introduce_photo_new();'));
    else:?>
        <input type="file" id="JUserModel_c_introduce_photo" name="c_introduce_photo">
        <?php endif;?>
        <?php echo $form->error($model,'c_introduce_photo'); ?>
    </div>
    <span class="msg">上传附件不超过1M</span>
    <?php open($info_status, 'c_introduce_photo');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'c_id_photo'); ?>
    <div id="c_id_photo_top">
        <?php if(!empty($model->c_id_photo)):
        echo CHtml::image($model->c_id_photo,'组织机构形象照',array('style'=>'max-width:400px;'));
        echo CHtml::button('重新选择',array('onClick'=>'c_id_photo_new();'));
    else:?>
        <input type="file" id="JUserModel_c_id_photo" name="c_id_photo">
        <?php endif;?>
        <?php echo $form->error($model,'c_id_photo'); ?>
    </div>
    <span class="msg">上传附件不超过1M</span>
    <?php open($info_status, 'c_id_photo');?>
</div>

<div class="row">
    <?php echo $form->labelEx($model,'c_introduce'); ?>
    <?php echo $form->textArea($model,'c_introduce',array('rows'=>4, 'cols'=>40,'style'=>'clear:both;display:inline-block;')); ?>
    <?php echo $form->error($model,'c_introduce'); ?>
    <?php open($info_status, 'c_introduce');?>
</div>


<div style="margin: 50px 0;" >
    <span><?php echo CHtml::submitButton('',array('id'=>'tjsh','style'=>'border: 0 none;font-size:0;')); ?></span>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>
</div>

<script type="text/javascript">
    function c_id_photo_new(){
        $("#c_id_photo_top").html(
            '<input type="hidden" name="JUserModel[c_id_photo]" value="" id="ytJUserModel_c_id_photo">' +
                '<input type="file" id="JUserModel_c_id_photo" name="c_id_photo">'
        );
    }
    function c_introduce_photo_new(){
        $("#c_introduce_photo").html(
            '<input type="hidden" name="JUserModel[c_introduce_photo]" value="" id="ytJUserModel_c_introduce_photo">' +
                '<input type="file" id="JUserModel_c_introduce_photo" name="c_introduce_photo">'
        );
    }
</script>

<?php
} else {

}?>